package com.lcf.app.jwt.common;

import com.lcf.app.jwt.model.User;

/**
 * @author ChenFei
 * @date 2022/1/18
 */
public class CurrentUser {

    private static ThreadLocal<User> localUser = new ThreadLocal<>();

    public static User get() {
        return localUser.get();
    }

    public static void set(User user) {
        localUser.set(user);
    }
}
